<?php
/**
 * ============================================================================
 * Copyright (c) 2015-2018 贵州大师兄信息技术有限公司 All rights reserved.
 * siteַ: http://www.dsxcms.com
 * ============================================================================
 * @author:     David Song<songdewei@163.com>
 * @version:    v1.0.0
 * ---------------------------------------------
 * Date: 2018/10/30
 * Time: 3:21 PM
 */

namespace App\WechatMessages\ZPH;


use App\WeChat\Message\TemplateMessage;

class OrderPaidMessage extends TemplateMessage
{
    protected $template_id = '7lRA9MuiMsht1i2BUTNzoeK6a_-wn1F14NNx2u7ewB0';

    public function __construct()
    {
        $this->setFirst('恭喜你购买成功！');
        $this->setRemark('欢迎再次光临！');
    }

    public function setShopName($value, $color = '#333')
    {
        $this->setDataValue('keyword1', $value, $color);
    }

    public function setProductName($value, $color = '#333')
    {
        $this->setDataValue('keyword2', $value, $color);
    }

    public function setAmount($value, $color = '#333')
    {
        $this->setDataValue('keyword3', $value, $color);
    }

    public function setIntegral($value, $color = '#333')
    {
        $this->setDataValue('keyword4', $value, $color);
    }

    public function setTradeTime($value, $color = '#333')
    {
        $this->setDataValue('keyword5', $value, $color);
    }
}
